var view1 = {
    template: ' <div>\n' +
        '         <h1>view1</h1>\n' +
        '         <div>{{username}}登录了</div>\n' +
        '     </div>',
    data: function () {
        return {
            username: ''
        }
    }, mounted: function () {
        var _this = this;
        eventBus.$on('user',function (val) {
            _this.username = val.username;
        })
    }
}

